package ch2;

public class Yuan {
    double r;//定义半径
    public double zhouchang(){//调用并计算周长
        return Math.PI*r*2;
    }
    public double mianji(){//调用并计算面积
        return Math.PI*r*r;
    }
}
